package com.b.service;

import co.elastic.clients.elasticsearch._types.query_dsl.Like;
import com.b.domain.LikeRecord;
import com.b.domain.Live;
import com.b.vo.PageVo;
import com.b.vo.Result;

import java.util.List;

public interface LiveService {


    int deleteByPrimaryKey(Integer id);

    int insert(Live record);

    int insertSelective(Live record);

    Live selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Live record);

    int updateByPrimaryKey(Live record);

    Result createLive(Live live);

    Result checkLiveStatus(Integer userId);

    void importAll();

    Result endLive(Integer userId);

    PageVo<Live> findLivesByTitleLike(Integer curPage, Integer pageSize, String keyword);

    Result findLiveById(Integer liveId);

    Result addPlyCount(Integer liveId,Integer userId);

    Result colLookingCount(Integer liveId,boolean isOnLooking);

    Result findMyLive(Integer userId);

    List<Live> getAll();
}
